using Horizoncraft.script.Components.Interfaces;
using MemoryPack;

namespace Horizoncraft.script.Components.EnergyBlocks;

[MemoryPackable]
public partial class EnergyUnitComponent : BlockComponents.TickComponent, IGetProgress
{
    public int EnergyUnitMax;
    public int EnergyUnitValue;
    public int Rate = 0;
    public bool InputAble = true;

    public ProgressValue GetProgress()
    {
        return new ProgressValue
        {
            Name = "EU",
            Max = EnergyUnitMax,
            Value = EnergyUnitValue
        };
    }
}